package com.dgut.service;

import com.dgut.pojo.OrderFlag;
import com.dgut.utils.PageRequestInfo;
import com.dgut.utils.PageResult;

public interface OrderFlagService {
    /**
     * Start-zwb
     */
    public Object getOrderList(PageRequestInfo pageRequestInfo,String type,String state);//采买方获取自己的订单表
    public OrderFlag getOrder(Integer id);//根据id查看订单详情
    public Object requestCancellationOfOrder(Integer id);//申请取消订单
    public Object payForOrder(Integer id);//订单付款
    public Object confirmOrder(Integer id);//订单确认
    /**
     * End-zwb
     */
    /**
     * Start-hwf
     */

    PageResult nonPaymentOrderListForServiceProvider(PageRequestInfo pageRequestInfo,int serviceProviderId);

    PageResult untreatedOrderListForServiceProvider(PageRequestInfo pageRequestInfo,int serviceProviderId);

    PageResult treatedOrderListForServiceProvider(PageRequestInfo pageRequestInfo,int serviceProviderId);

    PageResult finishedOrderListForServiceProvider(PageRequestInfo pageRequestInfo,int serviceProviderId);

    OrderFlag getOrderForServiceProvide(int orderId);

    boolean changeOrderState(int orderId,String state);


    /**
     * end-hwf
     */

    /**
     * start-lzh
     */
    //订单指派
    public Object assignOrder(Integer orderId , Integer serviceId);

    //订单审核
    public Object reviewOrder(Integer orderId,String agreeOrNot);

    //管理员取消订单
    public Object cancelOrder(Integer orderId);
    /**
     * end-lzh

    /**
     * start-gxd
     */

    Object getWaitAssignedOrder(PageRequestInfo pageRequestInfo);
    Object getWaitReviewOrder(PageRequestInfo pageRequestInfo);
    Object getCancelingOrder(PageRequestInfo pageRequestInfo);
    Object getAllOrder(PageRequestInfo pageRequestInfo);

    /**
     * end-gxd
     */
}
